package com.lanou.controller;

import com.alibaba.druid.pool.ha.selector.StickyDataSourceHolder;
import com.lanou.mapper.SysUserMapper;
import com.lanou.service.SysUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName SysUserController
 * @Description: TODO
 * @Author 郅占伟
 * @Date 2023年10月31日
 * @Version: 1.0
 */
@Api(value = "个人中心",tags = "个人中心")
@RestController
public class SysUserController {

    @Autowired
    private SysUserService sysUserService;

    @ApiOperation(value = "获取个人中心信息",httpMethod = "GET")
    @RequestMapping(value = "/getPersonalInfo",produces = "text/html;charset=utf-8")
    public String getPersonalInfo(String userName){
        return sysUserService.selectSysUserByName(userName);
    }
}
